package com.guide.domain;

import java.io.Serializable;
import java.util.Date;

public class TravelTeam implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -180100185463567386L;

	private Long id;

    private Long userId;

    private Integer userType;

    private Long travelorgId;

    private String teamtitle;

    private Date startTime;

    private String sourcecity;

    private String targetcity;

    private Integer keepstatus;

    private Integer isoutbound;

    private Integer days;

    private Integer pnum;

    private Integer isSay;

    private Double guidecost;

    private Integer applycount;

    private Integer guidestatus;

    private Integer commentstatus;
    
    private Integer status;

    private String photo;

    private String description;

    private Date ctime;

    private Date mtime;

    private String trip;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Long getTravelorgId() {
        return travelorgId;
    }

    public void setTravelorgId(Long travelorgId) {
        this.travelorgId = travelorgId;
    }

    public String getTeamtitle() {
        return teamtitle;
    }

    public void setTeamtitle(String teamtitle) {
        this.teamtitle = teamtitle;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getSourcecity() {
        return sourcecity;
    }

    public void setSourcecity(String sourcecity) {
        this.sourcecity = sourcecity;
    }

    public String getTargetcity() {
        return targetcity;
    }

    public void setTargetcity(String targetcity) {
        this.targetcity = targetcity;
    }

    public Integer getKeepstatus() {
        return keepstatus;
    }

    public void setKeepstatus(Integer keepstatus) {
        this.keepstatus = keepstatus;
    }

    public Integer getIsoutbound() {
        return isoutbound;
    }

    public void setIsoutbound(Integer isoutbound) {
        this.isoutbound = isoutbound;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Integer getPnum() {
        return pnum;
    }

    public void setPnum(Integer pnum) {
        this.pnum = pnum;
    }

    public Integer getIsSay() {
        return isSay;
    }

    public void setIsSay(Integer isSay) {
        this.isSay = isSay;
    }

    public Double getGuidecost() {
        return guidecost;
    }

    public void setGuidecost(Double guidecost) {
        this.guidecost = guidecost;
    }

    public Integer getApplycount() {
        return applycount;
    }

    public void setApplycount(Integer applycount) {
        this.applycount = applycount;
    }

    public Integer getGuidestatus() {
        return guidestatus;
    }

    public void setGuidestatus(Integer guidestatus) {
        this.guidestatus = guidestatus;
    }

    public Integer getCommentstatus() {
        return commentstatus;
    }

    public void setCommentstatus(Integer commentstatus) {
        this.commentstatus = commentstatus;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getMtime() {
        return mtime;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public String getTrip() {
        return trip;
    }

    public void setTrip(String trip) {
        this.trip = trip;
    }

    public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TravelTeam other = (TravelTeam) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUserType() == null ? other.getUserType() == null : this.getUserType().equals(other.getUserType()))
            && (this.getTravelorgId() == null ? other.getTravelorgId() == null : this.getTravelorgId().equals(other.getTravelorgId()))
            && (this.getTeamtitle() == null ? other.getTeamtitle() == null : this.getTeamtitle().equals(other.getTeamtitle()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getSourcecity() == null ? other.getSourcecity() == null : this.getSourcecity().equals(other.getSourcecity()))
            && (this.getTargetcity() == null ? other.getTargetcity() == null : this.getTargetcity().equals(other.getTargetcity()))
            && (this.getKeepstatus() == null ? other.getKeepstatus() == null : this.getKeepstatus().equals(other.getKeepstatus()))
            && (this.getIsoutbound() == null ? other.getIsoutbound() == null : this.getIsoutbound().equals(other.getIsoutbound()))
            && (this.getDays() == null ? other.getDays() == null : this.getDays().equals(other.getDays()))
            && (this.getPnum() == null ? other.getPnum() == null : this.getPnum().equals(other.getPnum()))
            && (this.getIsSay() == null ? other.getIsSay() == null : this.getIsSay().equals(other.getIsSay()))
            && (this.getGuidecost() == null ? other.getGuidecost() == null : this.getGuidecost().equals(other.getGuidecost()))
            && (this.getApplycount() == null ? other.getApplycount() == null : this.getApplycount().equals(other.getApplycount()))
            && (this.getGuidestatus() == null ? other.getGuidestatus() == null : this.getGuidestatus().equals(other.getGuidestatus()))
            && (this.getCommentstatus() == null ? other.getCommentstatus() == null : this.getCommentstatus().equals(other.getCommentstatus()))
            && (this.getPhoto() == null ? other.getPhoto() == null : this.getPhoto().equals(other.getPhoto()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getMtime() == null ? other.getMtime() == null : this.getMtime().equals(other.getMtime()))
            && (this.getTrip() == null ? other.getTrip() == null : this.getTrip().equals(other.getTrip()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUserType() == null) ? 0 : getUserType().hashCode());
        result = prime * result + ((getTravelorgId() == null) ? 0 : getTravelorgId().hashCode());
        result = prime * result + ((getTeamtitle() == null) ? 0 : getTeamtitle().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getSourcecity() == null) ? 0 : getSourcecity().hashCode());
        result = prime * result + ((getTargetcity() == null) ? 0 : getTargetcity().hashCode());
        result = prime * result + ((getKeepstatus() == null) ? 0 : getKeepstatus().hashCode());
        result = prime * result + ((getIsoutbound() == null) ? 0 : getIsoutbound().hashCode());
        result = prime * result + ((getDays() == null) ? 0 : getDays().hashCode());
        result = prime * result + ((getPnum() == null) ? 0 : getPnum().hashCode());
        result = prime * result + ((getIsSay() == null) ? 0 : getIsSay().hashCode());
        result = prime * result + ((getGuidecost() == null) ? 0 : getGuidecost().hashCode());
        result = prime * result + ((getApplycount() == null) ? 0 : getApplycount().hashCode());
        result = prime * result + ((getGuidestatus() == null) ? 0 : getGuidestatus().hashCode());
        result = prime * result + ((getCommentstatus() == null) ? 0 : getCommentstatus().hashCode());
        result = prime * result + ((getPhoto() == null) ? 0 : getPhoto().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getMtime() == null) ? 0 : getMtime().hashCode());
        result = prime * result + ((getTrip() == null) ? 0 : getTrip().hashCode());
        return result;
    }
}